package com.kzd.gtboon.main.service.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.kzd.gtboon.R
import com.kzd.gtboon.entity.GameExchange

class ServiceExchangeAdapter :
    BaseQuickAdapter<GameExchange, BaseViewHolder>(R.layout.item_service_exchange) {

    init {
        addChildClickViewIds(R.id.tvServiceExchangeCopy, R.id.tvServiceExchangeConnect)
    }

    override fun convert(holder: BaseViewHolder, item: GameExchange) {
        holder.setText(R.id.tvServiceExchangeName, item.name)
            .setText(R.id.tvServiceExchangeCode, "兑换码：${item.code}")
            .setText(R.id.tvServiceExchangeTime, item.create_at)
    }
}